package com.sunwayworld.basemodule.business.folder.resource;

import com.sunwayworld.framework.data.page.Page;
import com.sunwayworld.framework.restful.data.RestJsonWrapperBean;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import com.sunwayworld.basemodule.business.folder.bean.LimsPreOrderTaskBean;
import com.sunwayworld.basemodule.business.folder.service.LimsPreOrderTaskService;
import com.sunwayworld.framework.support.base.resource.GenericResource;
import com.sunwayworld.framework.support.choosable.resource.GenericChoosableResource;

@RequestMapping("/secure/basemodule/business/pre-order-tasks")
public interface LimsPreOrderTaskResource extends GenericResource<LimsPreOrderTaskService, LimsPreOrderTaskBean, Long>, GenericChoosableResource<LimsPreOrderTaskService, LimsPreOrderTaskBean, Long> {

    @PostMapping("/sample-task/search")
    Page<LimsPreOrderTaskBean> selectBySamplePreTasks(RestJsonWrapperBean wrapperBean);
}
